<?php
class SysProfitManageAction extends Action{
	
    public function profitManage(){    	
    	$this->assign("smarty",'/manage/page/financesystem/sysprofitmanage/sysprofitrmanage.html');
        return $this->SMARTY;
    }
    //分页查询提现数据
    public function queryProfit(){
    	global $param;
    	$params = $param->getParams();
    	tsLoad('/manage/busi/SysProfitPage.class.php');
    	
    	//收集当前传入的当前页信息
    	if($params['page']!=null)
    		$currentPage = $params['page'];
    	else
    		$currentPage =1;
    	//收集当前传入的一页多少条信息
    	if($params['rows']!=null)
    		$countPage = $params['rows'];
    	else
    		$countPage =10;
    	$sysProfitPage = new SysProfitPage();
    	$pageInfo = $sysProfitPage->initPage($params, $countPage, $currentPage);
    	$rows = $sysProfitPage->getCurPageData();
    	
    	$this->assign("total",$pageInfo['countRow']);
    	$this->assign("rows",$rows);
    	return $this->JSON;
    }
    
    public function queryMoSum(){
    	global $param;
    	$params = $param->getParams();
    	tsLoad('/manage/busi/SysProfitPage.class.php');
    	$sysProfitPage = new SysProfitPage();
    	$this->assign("global",$sysProfitPage->queryGlobalMo($params));
    	return $this->JSON;
    }
    
    public function queryBalanceOfPaymentsDetails(){
    	global $param;
    	$params = $param->getParams();
    	tsLoad('/manage/busi/SysProfitPage.class.php');
    	$sysProfitPage = new SysProfitPage();
    	$list = $sysProfitPage->queryBalanceOfPaymentsDetails($params);
    	$this->assign("rows",$list);
    	return $this->JSON;
    }
}
?>